﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Framework;
using SchemaMonitor;

namespace PushAlbums
{
	class Program
	{
		static void Main(string[] args)
		{
			long USERID = 103461166930100;
			var TOKEN = "EAAbPA5yZCYCYBACnqp6eZAPJ5iWUsdyS8L0w0qG2bD87od0wZC45fps69ZCgNJa4ihxhlqK4OAki5A0JIxFPz7jtGbjF3sbInjoXY2ZBICUQoZAfLNzd69ZBhWSAcZBUSeEXWomm1yTPACZATRyajTGXAUKQDkNGOv8Tnz2c6hgV87mqrbm0xQJ43Nk6aZBL4Oew5GegGWpoPayAZDZD";


			var localPhotos = new CSqlClient("server=.;database=JewBookPhotos;Trusted_Connection=True;");
			var localFacebk = new CSqlClient("server=.;database=FacebookRecycleBin;Trusted_Connection=True;");
			var remotePhotos = new CWebSrcBinary("http://recyclebin.mikeconnellministries.com/webservices/FBDatasrc.aspx");
			var remoteFacebk = new CWebSrcBinary("http://recyclebin.mikeconnellministries.com/datasrc.aspx");
			CConfig.Photos = remotePhotos;
			CDataSrc.Default = remoteFacebk;




			var d = CEngine.CreateAlbum(USERID, TOKEN, "Art/Christian/Classic");
			var id = d["id"];
			Console.WriteLine(id);

			foreach (var i in d.Keys)
				Console.WriteLine(i + "\t" + d[i]);

			Console.ReadLine();

		}
	}
}
